package org.luxor.eshop.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.luxor.eshop.order.entity.OrderEntity;

/**
 * 订单
 *
 * @author administrator @date 2020-12-04 15:47:45
 */
@Mapper
public interface OrderMapper extends BaseMapper<OrderEntity> {

    /**
     * 修改订单支付状态
     *
     * @param status  支付状态(0-支付中；1-已支付；2-支付失败)
     * @param orderId 订单ID
     */
    void updatePayStatusByOrderId(byte status, Long orderId);
}
